package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.AccountCreditDao;
import io.wdb.modules.generator.generator.entity.AccountCreditEntity;
import io.wdb.modules.generator.generator.service.AccountCreditService;



@Service("accountCreditService")
public class AccountCreditServiceImpl implements AccountCreditService {
	@Autowired
	private AccountCreditDao accountCreditDao;
	
	@Override
	public AccountCreditEntity queryObject(Long id){
		return accountCreditDao.queryObject(id);
	}
	
	@Override
	public List<AccountCreditEntity> queryList(Map<String, Object> map){
		return accountCreditDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return accountCreditDao.queryTotal(map);
	}
	
	@Override
	public void save(AccountCreditEntity accountCredit){
		accountCreditDao.save(accountCredit);
	}
	
	@Override
	public void update(AccountCreditEntity accountCredit){
		accountCreditDao.update(accountCredit);
	}
	
	@Override
	public void delete(Long id){
		accountCreditDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		accountCreditDao.deleteBatch(ids);
	}
	
}
